<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .border1{
        width:200px;
        height: 200px;
        background-color: rgb(224, 218, 218);
        margin: 0 auto ;
        border-bottom:  1px solid rgb(231, 32, 32);
        border-image: linear-gradient( to bottom,transparent  50%,rgb(19, 63, 187) 50%) 0 0 100% 0 ;
        margin-bottom: 20px;
    }

    .border2 {
        width: 200px;
        height: 200px;
        background-color: red;
        margin: 0 auto;
        position: relative;
        margin-bottom: 20px;
    }

    .border2::before {
        content: " ";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 200px;
        height: 1px;
        background-color: blue;
        background-image: linear-gradient(to bottom transparent 50%, blue 50%);
    }
    .border3 {
        width: 200px;
        height: 200px;
        background-color: red;
        margin: 0 auto;
        position: relative;
    }

    .border3::before {
        content: "";
        position: absolute;
       
        top: 0;
        left: 0;
        min-width: 200%;
        height: 200%;
        border: 1px solid #000;
        transform-origin: 0 0;
        transform: scale(.5, .5);
 }

</style>
<body>
    <div class="border1">1</div>
    <div class="border2">2</div>
    <div class="border3">3</div>
 
  
</body>
</html>